<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark" th:fragment="navbar">
    <div class="container">
        <a class="navbar-brand" href="/">图书管理系统</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarNav">
            <ul class="navbar-nav mr-auto">
                <li class="nav-item">
                    <a class="nav-link" th:href="@{/}">首页</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" th:href="@{/books}">图书管理</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" th:href="@{/readers}">读者管理</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" th:href="@{/borrows}">借阅管理</a>
                </li>
            </ul>
            <form th:action="@{/logout}" method="post" class="form-inline my-2 my-lg-0">
                <button class="btn btn-outline-light my-2 my-sm-0" type="submit">退出登录</button>
            </form>
        </div>
    </div>
</nav>
</body>
</html>